<!-- inc:inc.head -->




<div id="bd">
    <div id="md_catenav">
        <a href="#" class="mleft">left</a>
        <?php
        $cates =  QGMOD_SONCATE(22,false);
        $cate_id = isset($pid)?$pid:$id;
        $n = 0;
        foreach($cates as $key=>$value){
            if($value['id']==$cate_id){
                $n = $key;
                break;
            }
        }
        ?>
        <input type="hidden" value="<?php echo $n; ?>" id="defSet" />
        <div class="nav"><ul class="clearfix" style="left:-<?php echo ($n-2)*300; ?>px">
            <?php foreach($cates as $key=>$value){?>
            <li <?php if($value['id']==$cate_id){echo 'class="on"';}?> ><a href="list.php?id={:$value[id]}" ><img src="{:$value[pic]}"/></a></li>
            <?php }?>
        </ul></div>
        <a href="#" class="mright">right</a>
    </div>
    
    <div id="toolbar" class="clearfix">
    	<div id="md_sitemap">
    	    <a href="home.php">Home</a>>
    	    <!-- $lead_menu AS $key=>$value -->
    	    <a href="{:$value[url]}">{:$value[name]}</a>>
    	    <!-- end -->
    	</div>
    	<!-- inc:inc.search -->
    </div>
        
    <div id="pdlistwrap">
        <div id="md_pdlistsl">
            <div class="hd"></div>
            <div class="bd">
                <ul class="clearfix">
                    <?php $cates = $left_catelist;
                    foreach($cates as $key=>$value){?>
                    <li <?php if($value['id']==$id){echo 'class="on"';}?> ><a href="list.php?pid={:$cate_id}&id={:$value[id]}" >{:$value[catename]}</a></li>
                    <?php }?>
                </ul>
            </div>
            <div class="ft"></div>
        </div>
        <div id="md_pdlist">
            <div class="hd"></div>
            <div class="bd">
        		<ul class="list clearfix">
        		    <?php foreach($msglist as $key=>$value){?>
        			<li>
        			    <div class="pic"><a href="productInfo.php?f=list&id=<?php echo $value['id']?>" ><img src="<?php if($value['thumbfile']!=''){echo $value['folder'].$value['filename'];}else{echo 'images/nopicture.gif';}?>" /></a></div>
        			    <table class="name">
                            <tr><td>
                                <a href="productInfo.php?f=list&id=<?php echo $value['id']?>" ><?php echo $value['cut_subject']?></a>
                            </td></tr>
                        </table>
                        <span class="num"><?php echo $value['ext_number']?></span>
                    </li>
        			<?php }for($i=0;$i<($psize-count($msglist));$i++){?>
                    <li></li>
                    <?php }?>
        		</ul>
                <div class="pager">{:$pagelist}</div>
            </div>
            <div class="ft"></div>
        </div>
    </div>
</div>

<!-- inc:inc.foot -->